package com.xc.hotelmgr.webapi.modules.ht.dao;

import com.xc.hotelmgr.webapi.modules.ht.entity.HtLogicRoomEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author kemmy
 * @email kemmy@gmail.com
 * @date 2020-09-17 15:41:06
 */
@Mapper
public interface HtLogicRoomDao extends BaseMapper<HtLogicRoomEntity> {
    List<HtLogicRoomEntity> getRatesByRoomCode(@Param("roomCode") Long roomCode, @Param("checkInDate") String checkInDate, @Param("checkOutDate") String checkOutDate);

    List<HtLogicRoomEntity> getByHotelId(Long hotelId);

    List<HtLogicRoomEntity> getRpByRoomCode(Long roomCode);

    HtLogicRoomEntity getRpByRpCode(Long rpCode);
}
